<?php
require_once "loader.php";

if ($_SERVER['REQUEST_METHOD'] == 'POST'){
		if ($_POST['emailKey'] != $emailKey){echo '{"message":"cheating~"}';die();}
		if (send_email($_POST['To'],$_POST['Name'],$_POST['Subject'],$_POST['Text'])){
			echo '{"message":"success","To":"' . $_POST['To'] . '"}';
		}else{
			echo '{"message":"fail"}';
		}
	
}



?>


